package com.tk.controller;

import com.tk.constant.Constants;
import com.tk.eneity.PdfObj;
import com.tk.utils.PdfUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *@Author shen chen
 *@Date 2024-04-13
 */
@RestController
@RequestMapping("scanner")
public class ScannerController {
    @PostMapping("print")
    public String print(@RequestBody PdfObj pdfObj) {
        PdfUtil.generatePdf(pdfObj);
        return Constants.SUCCESS_ZERO;
    }
}
